@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');
*{
  margin: 0;
  padding: 0;
}

.clear{
  clear: both;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;   /* fallback: Tajawal */
  background-color: #e4effa;
}

.navbar-wrapper {
  background-color: #0f322c;
  padding: 10px 0 0 0;
  text-align: center;
  overflow: visible;
  position: relative;
}

.nav-logo {
  height: 85px;
  margin-top: 10px;
}

#lang-btn {
  background-color: #0f322c;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 7px 11px rgba(0, 0, 0, 2.1);
}

#lang-btn:hover {
  background-color: #87bd4a;
  transform: scale(1.05);
}

.navbar {
  background-color: #0f322c;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 45px;
  overflow: visible;
  position: relative;
}

.navbar a {
  font-size: 16px;
  color: white;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  color: #87bd4a;
}

.navbar a::after,
.dropbtn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #87bd4a;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s linear;
}

.navbar a:hover::after,
.dropdown:hover .dropbtn::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  min-width: 160px;
  border-radius: 8px;
  padding: 15px 0;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: visible;
}

.dropdown-content::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
  z-index: 1000;
}

.dropdown-content a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: #87bd4a;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #87bd4a;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s linear;
}

.submenu {
  position: relative;
}

.submenu-content {
  display: none;
  position: absolute;
  inset-block-start: -20%;        
  inset-inline-start: 100%;     
  background: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px 0;
  z-index: 1000;
}

.submenu:hover .submenu-content {
  display: block;
}

[dir="rtl"] .submenu-content {
  inset-inline-start: 100%;   
  inset-inline-end: auto;    
}

.image-grid-h1{
  text-align: center;
  margin-top: 35px;
}    

.image-fade-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.image-grid-h1{
  text-align: center;
  margin-top: 35px;
}    

.image-fade-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.image-fade-container img {
  width: 100%;
  display: block;
}

.image-fade-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}


.mission-vision-heading {
  text-align: center;
  font-size: 36px;
  margin-top: 60px;
  margin-bottom: 60px;
  font-family: 'Arial', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mission-vision-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
}

.box {
  background-color: #12372A;
  color: #87bd4a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  width: 300px;
  max-width: 90%;
  text-align: center;
  transition: transform 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
}

.box h2 {
  margin-bottom: 15px;
  font-size: 24px;
  color: #87bd4a;
}

.box p {
  font-size: 16px;
  line-height: 1.6;
}

.Contact-us {
  text-align: center;
  font-size: 36px;
  margin-top: 60px;
  margin-bottom: 60px;
  font-family: 'Arial', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.map-text-section {
  display: flex;
  align-items: center;       
  justify-content: center;
  gap: 40px;                  
  margin: 20px auto;
  flex-wrap: wrap;            
  max-width: 1200px;
  padding: 0 20px;    
}

.map-container {
  flex: 1 1 400px;
  max-width: 600px;
}

.map-description {
  text-align: center;         
  margin-inline: auto;        
  max-width: 600px;
}

.map-container iframe,
.map-container > *{
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
  flex: 1 1 400px;
  max-width: 600px;
}

.map-description h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 8px 0 12px;
}

.map-description p {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  margin: 0;
}

[dir="rtl"] .map-description {
  text-align: center;
  margin-left: 0;
  margin-right: 20px;     
}

[dir="rtl"] .map-text-section{
  flex-direction:row-reverse;   
  text-align:right;
}

[dir="rtl"] .map-text-section {
  flex-direction: row-reverse;
  text-align: right;
  gap: 20px; 
}

[dir="rtl"] .map-description {
  margin: 0; 
}

[dir="rtl"] .map-description {
  flex: 1 1 auto;
  max-width: 350px; 
}

.footer-outer{
  background:#0f322c;             
}

.footer{
  max-width: 1200px;               
  margin: 0 auto;
  padding: 32px 24px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 20px;

  text-align: center;              
}

.footer-left  { grid-area: left;  display:flex; flex-direction:column; align-items:center; gap:10px; }
.footer-middle{ grid-area: logo;  display:flex; align-items:center; justify-content:center; }
.footer-right { grid-area: right; display:flex; flex-direction:column; align-items:center; gap:10px; }

.footer-middle-img{ width: clamp(140px, 20vw, 220px); height:auto; }

.footer-right-icons{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.footer-right-img{ width:34px; height:34px; transition:transform .3s ease; }
.footer-right-img:hover{ transform:scale(1.12); }

.footer-left-h1,
.footer-right-h1{ color:#87bd4a; margin:0 0 6px; font-weight:700; }

.footer-left-h3{
  color: #87bd4a;
}

.footer p,
.footer .phone,
.footer .email{ color:#87bd4a; margin:0; font-size:16px; }

.footer .phone, .footer .email{ direction:ltr; unicode-bidi:isolate; }

[dir="rtl"] .footer{
  flex-direction:row-reverse; 
}

[dir="rtl"] .footer-right-icons{
  justify-content:flex-end;  
}

@media (max-width: 820px){
  .footer{
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "left"
      "right";
    justify-items: center;
  }
}